package com.hongye.proprietary.config;

import org.springframework.stereotype.Service;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

@Service
public class PathResource {

    public  boolean isMobileNO(String mobiles){
        Pattern p = Pattern.compile("^(?:(?:\\+|00)86)?1(?:(?:3[\\d])|(?:4[5-7|9])|(?:5[0-3|5-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\\d])|(?:9[1|8|9]))\\d{8}$");
        Matcher m = p.matcher(mobiles);
        System.out.println(m.matches()+"---");
        return m.matches();
    }
    public  boolean isNullNO(String mobiles){
       if (mobiles!=null){
           return true;
       }

        return false;
    }
}
